import request from '@/utils/request'

export function getItemTypeList(data) {
  return request({
    url: '/post/itemType/query/page',
    method: 'post',
    data
  })
}

export function getItemTypeListAll() {
  return request({
    url: '/post/itemType/query/all',
    method: 'get'
  })
}


export function editItemType(data) {
  return request({
    url: '/post/itemType/updateItemType',
    method: 'put',
    data
  })
}

export function deleteItemType(data) {
  return request({
    url: '/post/itemType/deleteBatchByIds',
    method: 'delete',
    data
  })
}

export function addItemType(data) {
  return request({
    url: '/post/itemType/insertItemType',
    method: 'post',
    data
  })
}
